//引入Vue
import Vue from 'vue'
//引入App
import App from './App.vue'
//引入VueRouter
import VueRouter from 'vue-router'
//引入路由器
import router from './router'
// 引入ElementUI组件库
import ElementUI from 'element-ui';
// 引入ElementUI组件库的样式
import 'element-ui/lib/theme-chalk/index.css'
//引入Axios
import Axios from 'axios'
//引入axios拦截器
import './interceptor/axios'
//引入vuex
import store from '@/store/store'
//引入echarts
import * as echarts from 'echarts';
//挂载到Vue实例上面
Vue.prototype.$echarts = echarts;

//在Vue的原型上添加$axios方法
Vue.prototype.$axios = Axios;

//关闭Vue的生产提示
Vue.config.productionTip = false
//应用插件
Vue.use(VueRouter)
//使用ElementUI
Vue.use(ElementUI)



//创建vm
new Vue({
	el:'#app',
	render: h => h(App),
	//引入全局事件总线
	beforeCreate() { Vue.prototype.$bus = this },
	router:router,
	store: store
})
